package graphic.primitives.car;

import graphic.primitives.general.GraphicObject;
import graphic.primitives.general.IGraphicObject;

public class BackWindow extends GraphicObject implements IGraphicObject {
	


	public BackWindow(int x, int y, int a, int b)
	{
		this.setXY(x, y);
		
		this.a = a;
		this.b = b;
	}
	
	@Override
	public void redraw()
	{
		mainWindow.line(x, y, x - a, y);
		mainWindow.line(x, y, x, y - b);
	}
	
	private int a;
	private int b;
}
